package com.beichuan_travel.interfaces.transform;

import com.beichuan_travel.model.dto.AttractionDTO;
import com.beichuan_travel.model.dto.HotelDTO;
import com.beichuan_travel.model.po.AttractionPO;
import com.beichuan_travel.model.po.HotelPO;
import com.beichuan_travel.model.vo.AttractionVO;
import com.beichuan_travel.model.vo.HotelVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface HotelCovertBasic {

    HotelCovertBasic INSTANCE = Mappers.getMapper(HotelCovertBasic.class);

    HotelVO POtoCovertVO(HotelPO PO);

    HotelPO DTOtoCovertPO(HotelDTO DTO);

    List<HotelVO> POtoCoertVO(List<HotelPO> list);

    List<HotelPO> DTOtoCovertPO(List<HotelDTO> list);
}
